package com.ftg.elvis.service;

import com.ftg.elvis.mapper.AdminContactMapper;
import com.ftg.elvis.pojo.Contact;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminContactService {
	
	@Autowired
	AdminContactMapper adminContactMapper;

	public List<Contact> showAll(int page, int limit) {
		page = (page - 1) * limit;
		return adminContactMapper.showAll(page, limit);
	}

	public int getCount() {
		return adminContactMapper.getCount();
	}

	public int delete(String conid) {
		return adminContactMapper.delete(conid);
	}
}
